std::clock

From Cppreference

< cpp | chrono | c
Jump to: navigation, search
Defined in header <ctime>

clock_t clock( void );

Returns raw processor clock time since the program is started. To convert result value to seconds divide it by CLOCKS_PER_SEC.

Contents

[edit] Parameters

(none)

[edit] Return value

raw processor clock time since the program has started or 1 if that information is unavailable.

[edit] Example

[edit] See also

ctime
converts a tm object to a textual representation
(function)
time
returns the current time of the system as time since epoch
(function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages